import request from '@/utils/request';
export async function query() {
  return request('/api/users');
}
export async function queryCurrent() {
  return request('/api/currentUser');
}
export async function queryNotices() {
  return request('/api/notices');
}


export async function login(params) {
  return request('/api/login', {
      method: 'POST',
      data: params,
  })
}

// 获得用户信息
export async function getUserInfo(params) {
  return request(`/api/user?load=streets&query=Id:${params}`)
}